package pl.enigmatic.parser.markup;

import pl.enigmatic.parser.xml.ParsingInfo;
import pl.enigmatic.parser.xml.XMLParserExtension;


public interface MarkupExtension {

	public static final String OPENING = "{";
	public static final String CLOSING = "}";
	public static final String SPACE = " ";

	public String getName();

	public boolean parse(Object target, MarkupProperties props, ParsingInfo<?> info, XMLParserExtension handler);

	public boolean canHandle(Object target, MarkupProperties props);

	public Object createInstance(MarkupProperties props, ParsingInfo<?> info);

}
